using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using SQLDAL;

public partial class GUI_Webpage_Manager_ManageBooking : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        LoadData();
    }

    #region Load all table booking to gridview (order by date order)
    private void LoadData()
    {
        BookingTableBll bookingTableBll = new BookingTableBll();
        try
        {
            SqlDataReader reader = bookingTableBll.ListAllTableBooking();
            grvListAllTableBooking.DataSource = reader;
            grvListAllTableBooking.DataBind();
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
    #endregion
}
